//
//  NRWCarCarDetailShareView.h
//  New_Runway
//
//  Created by 邢毅 on 2018/5/28.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>

@class NRWCarCarDetailShareView;

@protocol NRWCarCarDetailShareViewDelegate<NSObject>

/**
 分享按钮点击事件

 @param view self
 @param sender 分享的按钮
 @param index 分享按钮index
 @param title 分享按钮标题
 */
- (void)carDetailShareView:(NRWCarCarDetailShareView *)view shareBtn:(UIButton *)sender didClickAtIndex:(NSInteger)index title:(NSString *)title;

/**
 分享页面已经消失

 @param view view
 */
@optional
- (void)carDetailShareViewDidDisAppear:(NRWCarCarDetailShareView *)view;

@end

@interface NRWCarCarDetailShareView : UIView

@property (weak, nonatomic) id<NRWCarCarDetailShareViewDelegate> delegate;

///隐藏 '保存图片' 按钮,并且通过该值,可以判断是否为分享图片,YES,分享车辆详情,NO,分享图片
@property (assign, nonatomic) BOOL showSavePhotoBtn;

- (void)show;

- (void)dismiss;

@end
